package de.duplicatedetector.gui;

import javax.swing.JFrame;

import de.duplicatedetector.gui.elements.TCheckBoxMenuItem;
import de.duplicatedetector.gui.elements.TLabel;
import de.duplicatedetector.gui.elements.TMenu;
import de.duplicatedetector.gui.elements.TMenuBar;
import de.duplicatedetector.gui.elements.TMenuItem;
import de.duplicatedetector.gui.elements.TProgressBar;

public class Window extends JFrame {

	public static final String TITLE = "Duplicate Detector v1.0";
	
	private static final long serialVersionUID = 1L;

	public Window() {
		
		setTitle(TITLE);
		setSize(600,400);
		getContentPane().setLayout(null);
		
		TProgressBar progressBar = new TProgressBar();
		progressBar.setBounds(10, 316, 146, 14);
		getContentPane().add(progressBar);
		
		TLabel lblNewLabel = new TLabel("0%");
		lblNewLabel.setBounds(166, 316, 46, 14);
		getContentPane().add(lblNewLabel);
		
		TMenuBar menuBar = new TMenuBar();
		setJMenuBar(menuBar);
		
		TMenu menu_file = new TMenu("Datei");
		menu_file.setEnabled(false);
		menuBar.add(menu_file);
		
		TMenuItem menuitem_open = new TMenuItem("Pfad \u00F6ffnen...");
		menu_file.add(menuitem_open);
		
		TMenuItem menuitem_change = new TMenuItem("Pfad \u00E4ndern...");
		menuitem_change.setEnabled(false);
		menu_file.add(menuitem_change);
		
		TMenu menu_action = new TMenu("Aktion");
		menuBar.add(menu_action);
		
		TMenuItem menuitem_search = new TMenuItem("Suche starten...");
		menu_action.add(menuitem_search);
		
		TMenu menu_filter = new TMenu("Suchfilter");
		menuBar.add(menu_filter);
		
		TCheckBoxMenuItem checkbox_mp3 = new TCheckBoxMenuItem(".mp3 Dateien");
		menu_filter.add(checkbox_mp3);
		
		TCheckBoxMenuItem checkbox_m4a = new TCheckBoxMenuItem(".m4a Dateien");
		menu_filter.add(checkbox_m4a);
		
		TCheckBoxMenuItem checkbox_wma = new TCheckBoxMenuItem(".wma Dateien");
		menu_filter.add(checkbox_wma);
		
		TMenu mnSprache = new TMenu("Sprache");
		menuBar.add(mnSprache);
		
		TCheckBoxMenuItem checkbox_german = new TCheckBoxMenuItem("Deutsch");
		checkbox_german.setSelected(true);
		mnSprache.add(checkbox_german);
		
		TCheckBoxMenuItem checkbox_english = new TCheckBoxMenuItem("Englisch");
		mnSprache.add(checkbox_english);

		
		
	}
}
